package com.itheima.controller;

import com.itheima.entity.Result;
import com.itheima.service.WebAuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Felix(李鑫)
 * @Date: 2020/8/31 10:40
 * @Description: 前台登录相关
 */

@RestController
@RequestMapping("/oauth")
public class WebAuthController {

    @Autowired
    private WebAuthService webAuthService;

    /**
     * 提交反馈
     * @return
     */
    @RequestMapping("/addFeedback")
    public Result addFeedback(){
        return new Result();
    }

    /**
     * 退出登录，删除accessToken
     * @return
     */
    @RequestMapping("/delete/{accessToken}")
    public Result deleteToken(@PathVariable("accessToken") String accessToken){
        return new Result();
    }

    /**
     * 编辑用户信息
     * @return
     */
    @RequestMapping("/editUser")
    public Result editUser(){
        return new Result();
    }

    /**
     * 获取用户反馈
     * @return
     */
    @RequestMapping("/getFeedbackList")
    public Result getFeedbackList(){
        return new Result();
    }

    /**
     * 更新用户密码
     * @return
     */
    @RequestMapping("/updateUserPwd")
    public Result updateUserPwd(){
        return new Result();
    }

    /**
     * 获取用户信息
     * @return
     */
    @RequestMapping("/verify/{accessToken}")
    public Result verify(@PathVariable("accessToken") String accessToken){

        return new Result();
    }
}
